<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
    <base />
    <title>
      2016最新电视剧下载，迅雷电视剧下载，高清电视剧-迅播影院
    </title>
    <meta name="keywords" content="电视剧下载，美剧排行榜，高清电视剧，2015电视剧推荐" />
    <meta name="description" content="迅播影院为广大电视剧爱好者提供精选高清电视剧迅雷高速下载，支持网盘电视剧下载，QQ旋风电视剧下载，小米路由一键下载电视剧。"
    />
    <link href="http://statics.joy3g.com/2tu/css/style.css?v201406" type="text/css"
    rel="stylesheet">
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <script>
      var sitePath = ''
    </script>
    <script type="text/javascript" src="http://statics.joy3g.com/2tu/static/js/jquery-1.7.1.min.js?v201406">
    </script>
    <script type="text/javascript" src="http://statics.joy3g.com/2tu/static/js/common.js?v201406">
    </script>
    <script type="text/javascript" src="http://statics.joy3g.com/2tu/common.js?v201406">
    </script>
    <script src="http://statics.joy3g.com/2tu/function.js?v201406">
    </script>
  </head>
  
  <body class="channel16">
    <!-- 头部 -->
    <?php require('./public/head.html') ?>
    <!--/header-->



    <div id="main">
      <div class="banner" id="index01">
      </div>
      <div class="mod_timetable_withtumb">
        <div class="week_tab">
          <ul>
            <li class="">
             
                周一 （3月21）
                <i>
                </i>
              
            </li>
            <li class="">
             
                周二 （3月22）
                <i>
                </i>
              
            </li>
            <li class="">
             
                周三 （3月23）
                <i>
                </i>
              
            </li>
            <li class="">
             
                周四 （3月24）
                <i>
                </i>
              
            </li>
            <li class="">
             
                周五 （3月25）
                <i>
                </i>
              
            </li>
            <li class="">
             
                周六 （3月26）
                <i>
                </i>
              
            </li>
            <li class=" last">
             
                周日 （3月27）
                <i>
                </i>
              
            </li>
          </ul>
        </div>
<style>
  .current{
    background: #282B32;
    color: white;
  }
</style>

        <script>
          //控制周几模块的颜色
          var time = new Date();
  
          var day = time.getDay();

          $('.week_tab li')[day-1].className = "current"; 


        </script>



        <div class="week_cont">


          <!-- 对应每一天下面的tv 循环7天 -->
          <?php foreach ($zb as $k => $v){ ?>
          <div class="week_album ">           
            <ul class="week_album_lists">

              <?php $one = array_shift($v); ?>
              <li class="album special_album">
                <a title="{$one.title}" class="figure_detail" href="<?php echo U('/sp/id/'.$one['art_id']) ?>"
                target="_blank">
                  <img alt="{$one.title}" src="{$one.img}"
                  />
                  <h3 class="tit">
                    {$one.title}
                  </h3>
                </a>
                <p class="update">
                  更新至第{$one.sum}集
                </p>
                <p class="desc">
                </p>
              </li>

              <?php foreach ($v as $other) { ?>
            
              <li class="album">
                <a title="{$other.title}" class="figure_detail" href="<?php echo U('/sp/id/'.$other['art_id']) ?>" target="_blank">
                  <img alt="{$other.title}" src="{$other.img}" />
                  <h3 class="tit">
                    {$other.title}
                  </h3>
                </a>
                <p class="update">
                  更新至第{$other.sum}集
                </p>
                <p class="desc">
                </p>
              </li>

              <?php } ?>

            </ul>
          </div>
          <?php } ?>
          <!-- end -->
        </div>
      </div>

<script>
  $('.week_album:last').attr('class','week_album nowkbor');
</script>




      <script>
        var p0 = new Array(1, 1);
        var p1 = new Array(1, 1);
        var p2 = new Array(1, 1);
        var p3 = new Array(1, 1);
        var p4 = new Array(1, 1);
        var p5 = new Array(1, 1);
        var p6 = new Array(1, 1);
        jQuery(document).ready(function() {
          jQuery(".slide_tigger_next>a").each(function(index) {
            jQuery(this).click(function() {
              getdblist(eval("p" + index + "[0]"), index)
            });
          });
          jQuery(".slide_tigger_prev>a").each(function(index) {
            jQuery(this).click(function() {
              getdblist(eval("p" + index + "[1]"), index)
            });
          });

          jQuery(".slide_tigger_next>a").each(function(index) {
            getdblist(eval("p" + index + "[0]"), index);
          });
        });
        function getdblist(pg, nr) {
          ajax.get("/" + sitePath + "inc/ajax.asp?action=week&w=" + nr + "&p=" + pg,
          function(obj) {
            var returnValue = eval('(' + obj.responseText + ')');
            var item = returnValue.box;
            var html = "";
            for (var i = 0; i < item.length; i++) {
              html += "<li class=\"album" + (i == 0 ? " special_album": "") + "" + (i == 3 ? " bottom_album": "") + "\"> <a target=\"_blank\" href=\"" + item[i].link + "\" class=\"figure_detail\" title=\"" + item[i].name + "\"> <img src=\"" + item[i].pic + "\" alt=\"" + item[i].name + "\">" + "<h3 class=\"tit\">" + item[i].name + "</h3>" + "</a>" + "<p class=\"update\">" + ((item[i].state == 0) ? "已完结": "更新至第" + item[i].state + "集") + "</p>" + "<p class=\"desc\"></p>" + "</li>";
            }
            eval("p" + nr + "[0]=" + returnValue.n);
            eval("p" + nr + "[1]=" + returnValue.p);
            if (html.length > 0) {
              jQuery(".week_album_lists:eq(" + nr + ")").html(html);
              if (parseInt(returnValue.n) > parseInt(returnValue.c)) {
                jQuery(".slide_tigger_next:eq(" + nr + ")").css("display", "none");
              } else {
                jQuery(".slide_tigger_next:eq(" + nr + ")").css("display", "block");
              }
              if (parseInt(returnValue.p) > 0) {
                jQuery(".slide_tigger_prev:eq(" + nr + ")").css("display", "block");
              } else {
                jQuery(".slide_tigger_prev:eq(" + nr + ")").css("display", "none");
              }
            }
          });
        }
      </script>

<style>
  .content li a{
     display:block; white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 
  }
  .side li a{
     display:block;width: 140px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis; 
  }
  
</style>



<!-- 模块集合 -->
      <div class="channel">


      <!-- 根据类型循环模块 -->
      <?php foreach ($classall as $k => $class) { ?>

        <!-- 模块 -->
        <div class="cr"></div>
        <div class="box">

        <!-- 左侧 -->
          <div class="content">

            <!-- 标题 -->
            <div class="title">
              <h2>
                  {$class.catname}
              </h2>
              <span>
               <a href="{:U('home/cat/search/cat/2')}" target="_blank">
                  共
                  <i>
                    {$sum.$k}
                  </i>
                  部影片>>
                </a>
              </span>
            </div>
            <!-- end标题 -->
            <!-- movie列表 -->
            <ul class="img-list dis clearfix">
               
              <?php foreach ($new[$k] as $v){ ?>          
              <!-- 循环movie 12个 -->
                <li>
                <a class="play-img" href="<?php echo U('/sp/id/'.$v['art_id']);?>" title="{$v.title}"
                target="_blank">
                  <img src="{$v.img}" alt="{$v.title}"
                  />
                  <i>
                  </i>
                </a>
                <b>
                  <a href="<?php echo U('/sp/id/'.$v['art_id']);?>" title="{$v.title}" target="_blank">
                    {$v.title}
                  </a>
                </b>
                <p>
                  {$v.year}-{$class.catname}
                </p>
              </li>
              <!-- end循环movie -->
            <?php } ?>

            </ul>
            <!-- endmovie列表 -->
          </div>
          <!-- end左侧 -->

           <!-- 右侧movie -->
          <div class="side">

            <div class="shot">
             <a href="{:U('home/cat/search/cat/2')}" target="_blank">
              <h3>      
                  {$class.catname}推荐榜
              </h3>
              </a>
              <ul>


            <!-- 循环推荐文章 14个 -->
              <?php foreach ($hot[$k] as $hotk => $hotart) { ?>                
                <li>
                  <i>
                    {$hotk+1}
                  </i>
                  <a href="<?php echo U('/sp/id/'.$hotart['art_id']);?>" title="{$hotart.title}" target="_blank">
                    {$hotart.title}
                  </a>
                  <span>
                    <?php echo date('m-d',$hotart['update_time']) ?>
                  </span>
                </li>    
              <?php }  ?>
            <!-- end循环movie -->

              </ul>
            </div>
          </div>
          <!-- end右侧 -->

        <div class="cr"></div>

      </div>
      <?php } ?>
      <!-- end模块 -->

      </div>
<!-- end模块集合 -->

    </div>
<!-- main -->

     <!-- 引入底部 -->
    <?php require('./public/footer.html') ?>
    <!-- end底部 -->

  </body>

</html>